package com.ruoyi.aimp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aimp.mapper.Aimp_ThingwarnMapper;
import com.ruoyi.aimp.domain.Aimp_Thingwarn;
import com.ruoyi.aimp.service.IAimp_ThingwarnService;

/**
 * 机物告警Service业务层处理
 * 
 * @author fengfeng
 * @date 2022-06-18
 */
@Service
public class Aimp_ThingwarnServiceImpl implements IAimp_ThingwarnService 
{
    @Autowired
    private Aimp_ThingwarnMapper aimp_ThingwarnMapper;

    /**
     * 查询机物告警
     * 
     * @param thingwarnId 机物告警主键
     * @return 机物告警
     */
    @Override
    public Aimp_Thingwarn selectAimp_ThingwarnByThingwarnId(Long thingwarnId)
    {
        return aimp_ThingwarnMapper.selectAimp_ThingwarnByThingwarnId(thingwarnId);
    }

    /**
     * 查询机物告警列表
     * 
     * @param aimp_Thingwarn 机物告警
     * @return 机物告警
     */
    @Override
    public List<Aimp_Thingwarn> selectAimp_ThingwarnList(Aimp_Thingwarn aimp_Thingwarn)
    {
        return aimp_ThingwarnMapper.selectAimp_ThingwarnList(aimp_Thingwarn);
    }

    /**
     * 新增机物告警
     * 
     * @param aimp_Thingwarn 机物告警
     * @return 结果
     */
    @Override
    public int insertAimp_Thingwarn(Aimp_Thingwarn aimp_Thingwarn)
    {
        return aimp_ThingwarnMapper.insertAimp_Thingwarn(aimp_Thingwarn);
    }

    /**
     * 修改机物告警
     * 
     * @param aimp_Thingwarn 机物告警
     * @return 结果
     */
    @Override
    public int updateAimp_Thingwarn(Aimp_Thingwarn aimp_Thingwarn)
    {
        return aimp_ThingwarnMapper.updateAimp_Thingwarn(aimp_Thingwarn);
    }

    /**
     * 批量删除机物告警
     * 
     * @param thingwarnIds 需要删除的机物告警主键
     * @return 结果
     */
    @Override
    public int deleteAimp_ThingwarnByThingwarnIds(Long[] thingwarnIds)
    {
        return aimp_ThingwarnMapper.deleteAimp_ThingwarnByThingwarnIds(thingwarnIds);
    }

    /**
     * 删除机物告警信息
     * 
     * @param thingwarnId 机物告警主键
     * @return 结果
     */
    @Override
    public int deleteAimp_ThingwarnByThingwarnId(Long thingwarnId)
    {
        return aimp_ThingwarnMapper.deleteAimp_ThingwarnByThingwarnId(thingwarnId);
    }
}
